<!DOCTYPE html>
<html>
<head>
    <script type="text/javascript" src="../js/clappr.min.js"></script>
    <title>a</title>
    <style type="text/css">
        body{
            width: 100%;
            height: 100%;
            margin: 0;
        }
        .a{
            width: 100%;
            height: 100%;
            -webkit-animation:moveDown 0.6s ease-in-out 0.2s backwards;
            -moz-animation: moveDown 0.6s ease-in-out 0.2s backwards;
            -o-animation: moveDown 0.6s ease-in-out 0.2s backwards;
            -ms-animation: moveDown 0.6s ease-in-out 0.2s backwards;
            animation: moveDown 0.6s ease-in-out 0.2s backwards;
        }
        .videos{
            height: 100px;
            width: 160px;
        }
        @-webkit-keyframes moveDown{
            0%{
                -webkit-transform: translateY(-40px);
                opacity: 0;
            }
            100%{
                -webkit-transform: translateY(0px);
                opacity: 1;
            }
        }
        @-moz-keyframes moveDown{
            0%{
                -webkit-transform: translateY(-40px);
                opacity: 0;
            }
            100%{
                -webkit-transform: translateY(0px);
                opacity: 1;
            }
        }
        @-o-keyframes moveDown{
            0%{
                -webkit-transform: translateY(-40px);
                opacity: 0;
            }
            100%{
                -webkit-transform: translateY(0px);
                opacity: 1;
            }
        }
        @-ms-keyframes moveDown{
            0%{
                -webkit-transform: translateY(-40px);
                opacity: 0;
            }
            100%{
                -webkit-transform: translateY(0px);
                opacity: 1;
            }
        }
        @keyframes moveDown{
            0%{
                -webkit-transform: translateY(-40px);
                opacity: 0;
            }
            100%{
                -webkit-transform: translateY(0px);
                opacity: 1;
            }
        }

        /*自定义moveUp动画*/
        @-webkit-keyframes moveUp{
            0%{
                -webkit-transform: translateY(40px);
                opacity: 0;
            }
            100%{
                -webkit-transform: translateY(0px);
                opacity: 1;
            }
        }
        @-moz-keyframes moveUp{
            0%{
                -webkit-transform: translateY(40px);
                opacity: 0;
            }
            100%{
                -webkit-transform: translateY(0px);
                opacity: 1;
            }
        }
        @-o-keyframes moveUp{
            0%{
                -webkit-transform: translateY(40px);
                opacity: 0;
            }
            100%{
                -webkit-transform: translateY(0px);
                opacity: 1;
            }
        }
        @-ms-keyframes moveUp{
            0%{
                -webkit-transform: translateY(40px);
                opacity: 0;
            }
            100%{
                -webkit-transform: translateY(0px);
                opacity: 1;
            }
        }
        @keyframes moveUp{
            0%{
                -webkit-transform: translateY(40px);
                opacity: 0;
            }
            100%{
                -webkit-transform: translateY(0px);
                opacity: 1;
            }
        }

    </style>
</head>
<body style="background-color: #001">
<div class="a" id="player">
</div>
<script>

    var playerElement = document.getElementById("player");

    var player = new Clappr.Player({
        source: '../images/videos/cai_1.MP4',
        poster: '../images/videos/cai_1.JPG',
        width: 700,
        height: 394
    });

    player.attachTo(playerElement);
</script>
</body>
</html>